package com.tanhua.dubbo.api;

import com.tanhua.domain.mongo.Publish;
import com.tanhua.domain.vo.PageResult;
import org.springframework.data.domain.PageRequest;

import java.util.List;

public interface PublishApi {
    PageResult findRecommendList(Long userId, int page, int pagesize);

    String save(Publish publish);

    PageResult findFriendMovementList(Long id, int page, int pagesize);

    PageResult findAll(Long id, int page, int pagesize);

    Publish findById(String publishId);

    PageResult<Publish> findPublishList(int page, int pagesize, Long uid, Long state);

    void updateState(Publish publish);

    List<Publish> findPublishListByPids(List<Long> pidList);

    /**
     * 动态拒绝
     * @param pids
     */
    void reject(String[] pids);

    /**
     * 动态通过
     * @param pids
     */
    void pass(String[] pids);
}
